package cn.jtcoding.item.mapper;


import cn.jtcoding.item.pojo.vo.ItemCommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ItemsCommentsMapper {
    Integer getItemCommentCount(@Param("itemId") String itemId, @Param("level") Integer level);

    List<ItemCommentVO> getItemComments(@Param("itemId") String itemId, @Param("level") Integer level);
}